<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="d" uri="/WEB-INF/mytag/popuptable.tld"%>
    <%@ taglib prefix="b" uri="/WEB-INF/mytag/buttons.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Role</title>
<jsp:include page="/pages/common.jsp" />
<script type="text/javascript" src="/XYL/static/project/power/role.js"></script>
<style type="text/css">
	body{
		padding-top: 10px;
		padding-left:30px;
		padding-right:10px;
	}

</style>
</head>
<body>
	<div class="btn-toolbar">
		<div class="pull-right">
			<div class="input-append">
				<input type="text" placeholder="输入查询关键字" id="fuzzy-search">
				<div class="btn-group">
					<button type="button" class="btn btn-myself btn-sm" id="btn-search"><i class="fa fa-search"></i>查询</button>
				</div>
			</div>
		</div>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-add" content="添加" icon="fa fa-plus" permit="ROLEADD"></b:buttons>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-edit" content="修改" icon="fa fa-edit" permit="ROLEEDIT"></b:buttons>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-del" content="删除" icon="fa fa-remove" permit="ROLEDELETE"></b:buttons>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-view-user" content="查看用户" icon="fa fa-edit" permit="ROLEUSER"></b:buttons>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-add-resource" content="编辑权限" icon="fa fa-edit" permit="ROLEPERMIT"></b:buttons>
	</div>
	<table id="datatable" class="table table-bordered hover " border="1" width="100%" >
	  <thead>
	     <tr>
	     	 <th><input type="checkbox" name="cb-check-all"></th>
             <th>roleId</th>
             <th>角色编码</th>
             <th>角色名称</th>
             <th>角色描述</th>
         </tr>
	  <thead>
	  <tbody></tbody>
	</table>
	<div class="win_hidden_div">
	<!--编辑表单  -->
		<div id="edit" iconCls="icon-save" title="编辑">
			<div class="easyui-layout" data-options="fit:true">
				<form id="editForm" method="post">
					<input type="hidden" name="roleId">
					<div data-options="region:'center',border:false" style="padding:10px;">
						<table>
							<tr>
								<td><label for="roleCode">角色编码:</label></td>
								<td><input class="easyui-validatebox" type="text" name="roleCode" required="true"></input></td>
							</tr>
							<tr>
								<td><label for="roleName">角色名称:</label></td>
								<td><input class="easyui-validatebox" type="text" name="roleName" required="true"></input></td>
							</tr>
							<tr>
								<td><label for="roleDescription">角色描述:</label></td>
								<td><input class="easyui-validatebox" type="text" name="roleDescription"></input></td>
							</tr>
						</table>
					</div>
					<div data-options="region:'south',border:false" style="text-align:center;padding:5px;height:50px;">
						<input type="submit" class="btn btn-success" value="提交">
						<input type="button" class="btn btn-danger" value="取消" id="btn-cancle">
					</div>
				</form>
			</div>
		</div>
		<!--分配权限  -->
		<div id="add_resource" iconCls="icon-save" title="编辑">
			<div class="easyui-layout" data-options="fit:true">
				<ul id="tree"></ul>
				<div data-options="region:'south',border:false" style="text-align:center;padding:5px;height:50px;">
					<input type="button" class="btn btn-success" value="保存" id="add_resource_btn">
				</div>
			</div>
		</div>
	</div>
	<d:popuptable itemTitle="userId,用户名称,姓名" title="用户" id="popuptable_user"></d:popuptable>
</body>
</html>